﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Services;
using WLMCoreLibrary;

namespace WLMWebServices
{
    /// <summary>
    /// Summary description for MiWebSiteUpdate
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]

    public class MiWebSiteUpdate : System.Web.Services.WebService
    {

        [WebMethod]
        public string LastVersion()
        {
            dbConnector ConexionDB = new dbConnector();
            Websiteversions version = new Websiteversions(1,ref ConexionDB);
            ConexionDB.CloseConnection();
            return version.VersionNumber;
        }
    }
}
